from django.contrib import admin
from django.urls import path, include
from . import views

# function urls
urlpatterns = [
    path('', views.render_page),
    path('workspace', views.function_workspace_page),
    path('workspacemain', views.function_workspace_main_page),
    path('deploynewfunction', views.deploy_new_function),
    path('formswizard', views.forms_wizard_page),
    path('checkfunnameisexits', views.check_function_name_is_exits),
    path('create_function_by_template', views.create_function_by_template),
    path('function_deploy_step_one', views.function_deploy_step_one),
    path('function_deploy_step_three', views.function_deploy_step_three),
    path('get_code_editor_src', views.get_code_editor_src),
    path('wait_editor', views.wait_editor),
    path('code_editor_ready', views.code_editor_ready),
    path('build_function', views.build_function),
    path('deploy_function', views.deploy_function),
    path('invoke_function', views.invoke_function),
    path('delete_function', views.delete_function),
    path('get_openfaas_functions_info2', views.get_openfaas_functions_info2),
    path('free_code_editor/', views.free_code_editor),
    path('modify_function/', views.modify_function),
    path('pod_log_page/', views.pod_log_page),
    path('read_function_yml/', views.read_function_yml),
    path('write_function_yml/', views.write_function_yml),
    path('function_configure_page/', views.function_configure_page),
    path('get_deployed_function_info/', views.get_deployed_function_info),
    path('get_specify_function_info/', views.get_specify_function_info),
    path('function_detail_page/', views.function_detail_page),
    path('get_deployed_function_info/', views.get_deployed_function_info),
    path('get_dashboard_for_special_function_page', views.get_dashboard_for_special_function_page),
    path('delete_service/', views.delete_service),
    path('list_cluster_node/', views.list_cluster_node)
]
